package project.background.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Lob;
import javax.persistence.Table;

import fld.background.system.dto.annotation.Des;
import fld.background.system.entity.AUTOIDModel;
import lombok.Getter;
import lombok.Setter;

/**
 **企业信息
 * @author yc
 * 2019年1月4日
 */
@Des("企业信息")
@Setter
@Getter
@Entity
@Table(name = "t_company_info")
public class CompanyInfo extends AUTOIDModel {
	private static final long serialVersionUID = 1L;

	@Des("所属企业ID")
	@Column(name = "companyId", nullable = false)
	private Long companyId;
	
	@Des("发布日期")
	@Column(name = "publishDate", nullable = false)
	private Date publishDate;
	
	@Des("概要")
	@Column(name = "brief", length = 2000)
	private String brief;
	
	@Des("详情")
	@Lob
	@Column(name = "details")
	private String details;
	
	@Des("服务承诺")
	@Lob
	@Column(name = "fwcn")
	private String fwcn;
	
	@Des("联系人")
	@Column(name = "lxr", length = 200)
	private String lxr;
	
	@Des("联系电话")
	@Column(name = "lxdh", length = 200)
	private String lxdh;
	
	@Des("联系邮箱")
	@Column(name = "lxyx", length = 200)
	private String lxyx;
	
	@Des("详细地址")
	@Column(name = "xxdz", length = 500)
	private String xxdz;
	
	@Des("地图经度")
	@Column(name = "jd", length = 50)
	private String jd;
	
	@Des("地图纬度")
	@Column(name = "wd", length = 50)
	private String wd;
	
	@Des("访问量")
	@Column(name = "pv", nullable = false,columnDefinition="INT default 0")
	private Integer pv;
	
}